﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MainFrame.aspx.cs" Inherits="Thksoft.MainAspx.MainFrame" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>
        <%=ConfigurationManager.AppSettings["Title"]%></title>
    <link rel="shortcut icon" href="/App_Themes/MSN_Blue/Images/zsy.png" />
    <link href="/Content/lib/layer/theme/default/layer.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        body .demo-class {
            background: url(../Images/计算器图.png) no-repeat;
            border: none;
        }

            body .demo-class .layui-layer-content {
                padding: 3rem 3rem 0 3rem;
                text-align: center;
                font-size: 1.2rem;
                font-weight: bold;
                height: 500px;
            }

            body .demo-class .layui-layer-btn {
                margin-top: 0rem;
            }

                body .demo-class .layui-layer-btn a {
                    background: #ff6a00;
                    border: 0px;
                }

                body .demo-class .layui-layer-btn .layui-layer-btn1 {
                    background: #afb611;
                    border: 0px;
                }

        body .winning-class {
            background: #D2E9FF no-repeat;
            border: none;
        }

            body .winning-class .layui-layer-content {
                padding: 5rem 3rem 2rem 3rem;
                text-align: center;
                font-size: 1.2rem;
                font-weight: bold;
                height: 500px;
            }

            body .winning-class .layui-layer-btn {
                margin-top: 1rem;
            }

                body .winning-class .layui-layer-btn a {
                    background: #ff6a00;
                    border: 0px;
                }

                body .winning-class .layui-layer-btn .layui-layer-btn1 {
                    background: #afb611;
                    border: 0px;
                }

        .Nav-Title {
            float: left;
            font-family: 微软雅黑;
            font-size: 25px; /*   font-weight: 500;*/
            text-align: left;
            margin: 15px 0px 0px 10px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .layui-layer-lan .layui-layer-title {
            background-color: rgba(25,123,214,0.9);
            height: 30px;
            line-height: 30px;
        }

        .layui-layer-setwin {
            right: 10px;
            top: 9px;
        }

        #Favorite tr {
            line-height: 30px;
        }

        #Favorite td {
            width: 50%;
            height: 50px;
            line-height: 50px;
        }

        #Layer-Bank {
            display: block;
        }
    </style>
</head>
<%-- onload="Class_SystemLoad.Init_ItemCard();"--%>
<body style="margin: 0; padding: 0; overflow: hidden;">
    <script type="text/javascript" src="/Scripts/jquery.1.11.1.js"></script>
    <script type="text/javascript" src="/Content/lib/layer/layer.js"></script>
    <script type="text/javascript" src="/App_Themes/<%=_System_Skin%>/configs.js"></script>
    <script type="text/javascript" src="/Scripts/Main_JS/ItemCardNew.js"></script>
    <script type="text/javascript" src="/Scripts/Main_Js/Window.js"></script>
    <script type="text/javascript" src="/Scripts/Main_Js/SystemToolkit.js"></script>
    <script type="text/javascript" src="/Scripts/Main_Js/LoadSystem.js"></script>
    <script type="text/javascript" src="/Scripts/Tools.Module.js"></script>
    <script type="text/javascript" src="/Scripts/Tools.Module.Expand.js"></script>
    <script type="text/javascript">
        document.onreadystatechange = function (obj) {
            if (document.readyState == "complete") {
                if (document.getElementById('loading').style.display == "") {
                    document.getElementById('loading').style.display = 'none';
                    document.getElementById('MainFrame').style.display = '';
                    $("#SystemMessage").show();
                }
            }
        }
        function ClickYC() {
            TopBarToggle(document.getElementById('trtop'), document.getElementById("Topmenu"));
            resizeWindow();
        }
        $(document).ready(function () {
            var isOpenPipe = true;
            function OpenPipeline() {
                var option = {};
                option.Area = ["950px", "440px"];
                option.Url = "/MainAspx/PipelineUnmatch.aspx";
                option.Title = "未匹配流水";
                option.CloseBtn = 0;
                option.end = function () {
                    isOpenPipe = true;
                }
                top.MessageBox.Load(option);
            }

            resizeWindow();
            window.onload = resizeWindow;
            window.onresize = resizeWindow;
            Class_SystemLoad.Init_ItemCard();
            var winH = $(window).height() - 163;
            if (winH > 0) {
                document.getElementById("tbmid").style.height = winH + "px";
                document.getElementById("maincon").style.height = (winH + 8) + "px";
                document.getElementById("Item_Card_Iframe").style.height = (winH + 8 - 30) + "px";
            }
            //消息框点击事件绑定
            $("#SystemMessage").hide();
            window.SystemMessage = (function () {
                var that = {};
                that.Status = function (value) {
                    var dom = $("#SystemMessageHead [data-msg='IMG']");
                    if (value == undefined) {
                        if (dom.attr("alt") == "弹出") {
                            return false;
                        }
                        return true;
                    }
                    if (value) {
                        $("#SystemMessageBody").show();
                        //$("#SystemMessage").css('height', '220px');
                        //$("#SystemMessage").css('width', '400px');
                        $("#SystemMessage").animate({ 'height': '170px', 'width': '200px' }, 'slow', function () {
                            $("#SystemMessage").css('border-radius', '5px');
                            $("#SystemMessageHead").css('border-bottom', '1px solid red');
                        });
                        dom.attr("alt", "隐藏");
                        dom.attr("title", "隐藏");
                        dom.attr("src", "/App_Themes/MSN_Blue/Images/down_coent.png");
                    }
                    else {
                        $("#SystemMessageBody").hide();
                        $("#SystemMessage").animate({ 'height': '20px', 'width': '112px' }, 'slow', function () {
                            $("#SystemMessage").css('border-radius', '0px');
                            $("#SystemMessageHead").css('border-bottom', '0px');
                        });
                        //$("#SystemMessage").css('height', '20px');
                        //$("#SystemMessage").css('width','112px');
                        dom.attr("alt", "弹出");
                        dom.attr("title", "弹出");
                        dom.attr("src", "/App_Themes/MSN_Blue/Images/up_coent.png");
                    }
                }
                return that;
            }());
            $("#SystemMessageHead [data-msg='IMG']").on("click", function () {
                //获取当前Message的状态
                if (SystemMessage.Status()) {

                    SystemMessage.Status(false);
                }
                else {
                    SystemMessage.Status(true);
                }
            });
        });
        function resizeWindow() {
            var winH = $(window).height(); //document.body.clientHeight;  //
            var hx = winH;
            var h = winH + "px";
            if (hx > 0) {
                document.getElementById("maindiv").style.height = h.toString();
                //查看是否显示
                var topDis = document.getElementById("trtop").style.display;
                var toph = 0;
                if (topDis == "none") {
                } else {
                    toph = 90; //默认头部高度  //document.getElementById("trtop").style.height;
                    //  toph = $("#trtop").height();
                }
                document.getElementById("tbmid").style.height = "100%"; //(hx - 80 - toph) + "px";

                //document.getElementById("ifr_left").style.height = (hx - 73 - toph - 18) + "px";
                document.getElementById("maincon").style.height = (hx - 80 - toph + 8) + "px";
                document.getElementById("Item_Card_Iframe").style.height = (hx - 80 - toph + 8 - 30) + "px";
                //根据窗体变化修改加载栏位置 加载栏永远处于子窗体中间
                var loaddom = document.getElementById("Item_Card_Iframe");
                var loadposition = { x: 0, y: 0 };
                loadposition.x = getElementPosition(loaddom).x + (($(loaddom).width()) / 2);
                loadposition.y = getElementPosition(loaddom).y + (($(loaddom).height()) / 2);
                $("#load").css("top", (loadposition.y - 10) + "px");
                $("#load").css("left", (loadposition.x - 20) + "px");
                function getElementPosition(e) {
                    var x = 0, y = 0;
                    while (e != null) {
                        x += e.offsetLeft;
                        y += e.offsetTop;
                        e = e.offsetParent;
                    }
                    return { x: x, y: y };
                }
            }
        };

        function FORM_FABU(url) {
            var option = {};
            option.Area = ["950px", "440px"];
            option.Url = url;
            option.Title = "公告详情";
            top.MessageBox.Load(option);
        }
        function AnnouncementMore() {
            var option = {};
            option.Area = ["950px", "440px"];
            option.Url = "/Module/ParameterSettings/AnnouncementMore.aspx";
            option.Title = "公告发布";
            top.MessageBox.Load(option);
        }

        function outPage() {
            layer.confirm("确定退出吗？", function (index) {
                layer.close(index);
                location.href = '/Login.aspx?Login_Out=1';
            });
        }
        $.ajax({
            url: "/MainAspx/MainFrame.Aspx?TYPE=API",
            type: "POST",
            success: function (result) {
                window.LoginUser = result.Data;
            }
        });
    </script>
    <div id="Layer-Bank">
        <div></div>
    </div>
    <div id="loading" style="position: absolute; width: 100%; height: 100%; left: 0px; top: 0px;">
        <div style="text-align: center; padding-top: 200px">
            <img alt="" src="../App_Themes/<%=_System_Skin%>/Images/load.gif" />&nbsp;&nbsp;&nbsp;正在读取数据请稍候...
        </div>
    </div>
    <form id="form1" runat="server">
        <asp:HiddenField ID="BankStatus" runat="server" />
        <asp:ScriptManager ID="ScriptManager" runat="server">
        </asp:ScriptManager>
        <asp:Timer ID="Timer1" runat="server" Interval="3000" OnTick="Timer1_Tick">
        </asp:Timer>
        <asp:Timer ID="Timer2" runat="server" Interval="3000" OnTick="Timer2_Tick">
        </asp:Timer>
        <!--弹出装载信息提示-->
        <div id="load" style="display: none; z-index: 101; left: 472px; width: 62px; position: absolute; top: 314px; height: 80px;">
            <img alt="正在加载。。。" src="../App_Themes/<%=_System_Skin%>/Images/loading.gif" />
        </div>
        <div id="MainFrame" style="display: none; width: 100%; float: left; min-width: 800px;">
            <table id="maindiv" style="width: 100%;" cellpadding="0" cellspacing="0">
                <tr id="trtop" style="height: 90px;">
                    <td colspan="2">
                        <table cellpadding="0" cellspacing="0" border="0" style="height: 90px; width: 100%;">
                            <tr style="width: 100%;">
                                <%--                            <td style="background-image: url('../App_Themes/<%=_System_Skin%>/Images/top_left2.jpg');
                                width: 452px; padding-left: 20px;">
                                <img alt="" style="float: left; margin: 0px 0px 0px 30px; width: 45px; height: 45px;"
                                    src="../App_Themes/<%=_System_Skin%>/Images/zsy.png" />
                                <div style="width: 100%;">
                                    <span id="lblTitle" class="Nav-Title" style="font-size: 20px; margin-top: 0px;">四川川港燃气有限责任公司
                                    </span>
                                </div>
                                <div style="width: 100%;">
                                    <span style="float: right; width: 200px; font-size: 13px; padding-right: 10px;">资金集中管理信息平台V2.0</span>
                                </div>
                            </td>
                            <td style="background-image: url('../App_Themes/<%=_System_Skin%>/Images/top_right2.gif');"
                                valign="bottom">
                            </td>
                            <td style="width: 446px; background-image: url('../App_Themes/<%=_System_Skin%>/Images/top_right1.jpg');"
                                valign="bottom">
                            </td>--%>
                                <td colspan="3" valign="bottom" style="background-image: url('/App_Themes/<%=_System_Skin%>/Images/top_right.png'); background-repeat: no-repeat; background-size: cover; -webkit-background-size: cover; -o-background-size: cover; background-size: 1920px;"></td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr style="height: 35px; margin: 0px; background-image: url('../App_Themes/<%=_System_Skin%>/Images/menubar_bg.jpg');">
                    <td colspan="2">
                        <table width="100%" cellpadding="0" cellspacing="0" border="0" style="height: 33px;">
                            <tr style="text-align: center;">
                                <td style="width: 63px;">
                                    <img alt="" title="隐藏菜单" id="leftMenuId" style="cursor: pointer" onclick="MenuNavToggle(document.getElementById('tdleft'),this);"
                                        src="../App_Themes/<%=_System_Skin%>/Images/img_menu_open.jpg" />
                                    <iframe id="MenuControl" style="width: 0px; height: 0px" name="MenuControl" frameborder="0"></iframe>
                                </td>
                                <td style="width: 72px;" align="center">
                                    <%--      TopBarToggle(document.getElementById('trtop'),this);--%>
                                    <img alt="" title="显示顶栏" id="Topmenu" style="cursor: pointer" onclick="ClickYC();"
                                        src="../App_Themes/<%=_System_Skin%>/Images/img_dingye_open.jpg" />
                                    <%--<a onclick="OpenPipeline()">测试未匹配流水</a>--%>
                                    <%--<asp:Button ID="Button_Bind" runat="server" Text="Button" OnClick="Button_Bind_Click" />--%>
                                </td>
                                <td style="text-align: right">
                                    <marquee direction="left" behavior="scroll" scrollamount="5" loop="-1" width="100%"
                                        hspace="10" vspace="10" onmouseout="this.start()" onmouseover="this.stop()">
                                    <asp:UpdatePanel ID="UpdatePanel" runat="server" UpdateMode="Conditional">
                                        <ContentTemplate>
                                            <image src="/App_Themes/<%=_System_Skin%>/Images/barbutton_haha.png" widht="18px" height="18px" style="vertical-align:middle"></image>&nbsp;&nbsp;
                                            <asp:Label ID="Label_LoginMessage" Font-Size="12px" ForeColor="#000000" runat="server"></asp:Label>
                                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                            <image src="/App_Themes/MSN_Blue/Images/message.png" widht="18px" height="18px" style="vertical-align:middle"></image>
                                            <asp:HyperLink ID="HyperLinkHint" Font-Size="12px" ForeColor="#000000" runat="server"></asp:HyperLink>
                                     </ContentTemplate>
                                         <Triggers>
                                            <asp:AsyncPostBackTrigger ControlID="Timer1" EventName="Tick" />
                                         </Triggers>
                                    </asp:UpdatePanel>
                                </marquee>
                                </td>
                                <td style="width: 250px; text-align: right; vertical-align: top;">
                                    <!--下拉菜单开始-->
                                    <dx:ASPxMenu ID="FastMenu" runat="server" meta:resourcekey="FastMenuResource1" Paddings-PaddingTop="5px">
                                    </dx:ASPxMenu>
                                    <!--下拉菜单结束-->
                                </td>
                                <%--<td style="width: 50px; cursor: pointer; padding-right: 20px; text-align: center;">
                                <a href="#" title="退出" onclick="outPage()">
                                    <img height="19" src="/App_Themes/<%=_System_Skin%>/Images/barbutton_logout.gif"
                                        alt="" />
                                </a>
                            </td>--%>
                                <!--收藏夹-->
                                <%--<td style="width: 50px; cursor: pointer; padding-right: 20px; text-align: center;">
                                <img src="../Images/Favorite.png" onclick="ClickSCJ();" runat="server" style="width: 20px;
                                    height: 20px;" />
                            </td>--%>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr style="width: 100%; height: 100%;">
                    <td id="tdleft" style="width: 219px; padding-left: 2px;" valign="top">
                        <!-- Menu -->
                        <table id="tbmid" width="219px" cellpadding="0" cellspacing="0" border="0" style="height: 100%; padding-left: 0px; margin-left: 0px;">
                            <tr>
                                <!-- Menu_top -->
                                <td style="height: 8px; background-image: url('../App_Themes/<%=_System_Skin%>/Images/menu_bg_top.jpg');"></td>
                            </tr>
                            <tr>
                                <!-- Menu_middle -->
                                <td style="width: 215px; height: 100%; background-image: url('../App_Themes/<%=_System_Skin%>/Images/menu_bg_middle.jpg'); padding-left: 6px; text-align: left;"
                                    valign="top">
                                    <iframe id="ifr_left" src="Left_Menu.aspx" scrolling="no" style="width: 190px; height: 100%; overflow-x: hidden; overflow: hidden;"
                                        frameborder="0"></iframe>
                                    <%-- <table style="width: 200px; height: 100%;" cellpadding="0" cellspacing="0" border="0">
                            <tr style="height: 100%" valign="top">
                                <!-- Left Space -->
                                <td style="width: 8px;">
                                </td>
                                <td style="width: 190px;">
                                </td>
                            </tr>
                        </table>--%>
                                </td>
                            </tr>
                            <tr>
                                <!-- Menu_bottom -->
                                <td style="height: 10px; background-image: url('../App_Themes/<%=_System_Skin%>/Images/menu_bg_bottom.jpg');"></td>
                            </tr>
                        </table>
                    </td>
                    <td valign="top">
                        <table id="maincon" style="width: 100%; height: 100%;" cellspacing="0" cellpadding="0"
                            border="0">
                            <tr style="height: 31px; width: 100%;">
                                <!-- Label_left_Part -->
                                <td style="width: 15px; background-image: url('../App_Themes/<%=_System_Skin%>/Images/label_bg_left.png');"></td>
                                <!-- Label_middle_Part -->
                                <td style="width: 100%; background-image: url('../App_Themes/<%=_System_Skin%>/Images/label_bg.png');">
                                    <!-- Label_Content -->
                                    <div id="Item_Card" style="height: 29px;">
                                    </div>
                                </td>
                                <!-- Label_right_Part -->
                                <td style="width: 29px; background-image: url('../App_Themes/<%=_System_Skin%>/Images/label_bg_right.png');">
                                    <img alt="" id="closebutton" title="关闭所有页面" style="cursor: pointer;" onmouseout="mouseOut(id)"
                                        onmouseover="mouseOver(id)" src="../App_Themes/<%=_System_Skin%>/Images/button_close_close.gif"
                                        onclick="Class_ItemCard_OprnNew.CloseAllItemCard()" />
                                </td>
                                <td style="width: 2px;"></td>
                            </tr>
                            <tr class="full">
                                <td colspan="4">
                                    <div id="Item_Card_Iframe" class="full">
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr style="width: 100%; height: 30px; background-image: url('../App_Themes/<%=_System_Skin%>/Images/bodybottom_bg.jpg'); text-align: center;">
                    <td colspan="2">
                        <asp:Label ID="lbl_title" runat="server" Text=""></asp:Label>
                    </td>
                </tr>
            </table>
        </div>
        <div id="SystemMessage">
            <div id="SystemMessageHead" style="height: 20px; line-height: 20px;">
                <div style="float: left; width: 90px; line-height: 20px; height: 20px;">
                    <img alt="" src="/App_Themes/MSN_Blue/Images/message_head_img.png" style="width: 16px; position: absolute; left: 5px; top: 2px; height: 16px;" />
                    <div style="position: absolute; left: 25px; color: white;">
                        系统消息
                    </div>
                </div>
                <div style="float: right; cursor: pointer;">
                    <img data-msg="IMG" alt="弹出" src="/App_Themes/MSN_Blue/Images/up_coent.png" border="0"
                        title="弹出" style="width: 16px; height: 16px; position: absolute; right: 5px; top: 2px;" />
                </div>
            </div>
            <div id="SystemMessageBody" style="height: 190px; display: none; margin: 5px; overflow: auto; overflow-x: hidden;">
                <p style="text-align: center;">
                    <asp:UpdatePanel ID="UpdatePanel_KFGG" runat="server" UpdateMode="Conditional" style="height: 100%; position: relative;">
                        <ContentTemplate>
                            <p>
                                <asp:HyperLink ID="HyperLink_KFGG1" runat="server"></asp:HyperLink>
                            </p>
                            <br />
                            <p>
                                <asp:HyperLink ID="HyperLink_KFGG2" runat="server"></asp:HyperLink>
                            </p>
                            <br />
                            <p>
                                <asp:HyperLink ID="HyperLink_KFGG3" runat="server"></asp:HyperLink>
                            </p>
                            <br />
                            <p>
                                <asp:HyperLink ID="HyperLink_KFGG4" runat="server"></asp:HyperLink>
                            </p>
                            <br />
                            <p>
                                <asp:HyperLink ID="HyperLink_KFGG5" runat="server"></asp:HyperLink>
                            </p>
                            <br />
                            <div style="position: absolute; right: 8px; bottom: 50px;">
                                <a href="#" onclick="AnnouncementMore();" style="font-size: 14px; color: red; font-weight: 200; font-family: 宋体;">>>更多 </a>
                            </div>
                        </ContentTemplate>
                        <Triggers>
                            <asp:AsyncPostBackTrigger ControlID="Timer2" EventName="Tick" />
                        </Triggers>
                    </asp:UpdatePanel>
                </p>
            </div>
        </div>
    </form>
</body>
</html>